Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

434
Vistas
Is there with micronaut a way to have the "Spring Data JPA" repository autogenerated from an interface like in spring?

Im setting up a new micro service with micronaut and want it to access a database over jpa/hibernate.

Is there an easy way to have the "Spring Data JPA" repositories implementation to be autogenerated from the interface like with spring?

interface ExampleRepository {
    fun FindById(id: String): Example
}

Ideally i would the be able to import an ExampleRepository over DI into my service.

EDIT: Micronaut Data is in the process of being released: https://github.com/micronaut-projects/micronaut-data

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Not currently, although such a feature is planned for the future.

over 4 years ago · Santiago Trujillo Denunciar

0

In July 2019 Micronaut authors released Predator — short for Precomputed Data Repositories — that is equivalent to Spring Data.

Quoting:

Predator uses Micronaut's ahead-of-time (AoT) compilation APIs to move the entity meta-model into your compiler and translate a finder expression like findByTitle into the appropriate SQL or JPA-QL query at compilation time. A very thin runtime layer that uses Micronaut's reflection-free compilation-time AOP then only has to execute the query and return the results.

UPDATE: The project has now been renamed to "Micronaut Data", here is the new link to the docs

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda